<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSim/FacilityQueueElement.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d21be12960473ba5c51e5f9beea3525e.html">QcnSim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">FacilityQueueElement.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_facility_queue_element_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_entity_8h.html">Entity.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_token_8h.html">Token.h</a>&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_event_type_8h.html">EventType.h</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_facility_queue_element.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_facility_queue_element.html">FacilityQueueElement</a> {</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">   37</a></span>&#160;    std::shared_ptr&lt;const Token&gt; <a class="code" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a>; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">   38</a></span>&#160;    <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">eventType</a>;            </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">   39</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">serviceTime</a>;             </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">//public:</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="class_facility_queue_element.html#a1a80c73df22ab25ab73348f5ac5c3f1e">FacilityQueueElement</a>(std::shared_ptr&lt;const Token&gt; <a class="code" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a>, <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="code" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">eventType</a>, <span class="keywordtype">double</span> <a class="code" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">serviceTime</a>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_facility_queue_element.html#aad14f0930b603531f9776678a4d8f694">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="class_facility_queue_element.html">FacilityQueueElement</a> &amp;left, <span class="keyword">const</span> <a class="code" href="class_facility_queue_element.html">FacilityQueueElement</a> &amp;right);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_facility_queue_element.html#ae090afa77613543409d2f0c4c1cd6f4f">   52</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_facility.html">Facility</a>; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};                  </div>
<div class="ttc" id="_event_type_8h_html"><div class="ttname"><a href="_event_type_8h.html">EventType.h</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_aad14f0930b603531f9776678a4d8f694"><div class="ttname"><a href="class_facility_queue_element.html#aad14f0930b603531f9776678a4d8f694">FacilityQueueElement::operator&lt;</a></div><div class="ttdeci">friend bool operator&lt;(const FacilityQueueElement &amp;left, const FacilityQueueElement &amp;right)</div><div class="ttdoc">Comparator, non-member. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8cpp_source.html#l00057">FacilityQueueElement.cpp:57</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_ae701683e8df14217045f7a9e5c8f5fd8"><div class="ttname"><a href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">FacilityQueueElement::token</a></div><div class="ttdeci">std::shared_ptr&lt; const Token &gt; token</div><div class="ttdoc">Token object. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00037">FacilityQueueElement.h:37</a></div></div>
<div class="ttc" id="_event_type_8h_html_a2628ea8d12e8b2563c32f05dc7fff6fa"><div class="ttname"><a href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a></div><div class="ttdeci">EventType</div><div class="ttdoc">EventType enum class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_type_8h_source.html#l00029">EventType.h:29</a></div></div>
<div class="ttc" id="_entity_8h_html"><div class="ttname"><a href="_entity_8h.html">Entity.h</a></div></div>
<div class="ttc" id="class_facility_html"><div class="ttname"><a href="class_facility.html">Facility</a></div><div class="ttdoc">Facility class. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_8h_source.html#l00044">Facility.h:44</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_af10475e117bdd152b9ee50ab41b1947e"><div class="ttname"><a href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">FacilityQueueElement::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Eventy type associated with token. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00038">FacilityQueueElement.h:38</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_a8daf4ce8f3c3d88ce35f868971e871bd"><div class="ttname"><a href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">FacilityQueueElement::serviceTime</a></div><div class="ttdeci">double serviceTime</div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00039">FacilityQueueElement.h:39</a></div></div>
<div class="ttc" id="class_facility_queue_element_html"><div class="ttname"><a href="class_facility_queue_element.html">FacilityQueueElement</a></div><div class="ttdoc">Facility Queue Element class. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00036">FacilityQueueElement.h:36</a></div></div>
<div class="ttc" id="_token_8h_html"><div class="ttname"><a href="_token_8h.html">Token.h</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_a1a80c73df22ab25ab73348f5ac5c3f1e"><div class="ttname"><a href="class_facility_queue_element.html#a1a80c73df22ab25ab73348f5ac5c3f1e">FacilityQueueElement::FacilityQueueElement</a></div><div class="ttdeci">FacilityQueueElement(std::shared_ptr&lt; const Token &gt; token, EventType eventType, double serviceTime)</div><div class="ttdoc">Defines an element for the Event Chain. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8cpp_source.html#l00043">FacilityQueueElement.cpp:43</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:20 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
